package model;

public class Product {
private String id;
private String name;
private double price;
private String desc;
private String m_id;
public Product(String id, String name, double price, String desc, String m_id) {
	super();
	this.id = id;
	this.name = name;
	this.price = price;
	this.desc = desc;
	this.m_id = m_id;
}
public String getId() {
	return id;
}
public void setId(String id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public double getPrice() {
	return price;
}
public void setPrice(double price) {
	this.price = price;
}
public String getDesc() {
	return desc;
}
public void setDesc(String desc) {
	this.desc = desc;
}
public String getM_id() {
	return m_id;
}
public void setM_id(String m_id) {
	this.m_id = m_id;
}
@Override
public boolean equals(Object obj){
	if(this == obj) return true;
    if(obj == null) return false;
    if(getClass() != obj.getClass()) return false;
    return true;
}

@Override
public int hashCode(){
   return this.getId().hashCode();
}





}
